package com.ra.brand;

import java.io.File;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

import com.googlecode.cswish.annotation.cm;

/**
 * 品牌内容图片
 * 
 * @author colin
 * 
 */
@Entity
public class BrandApartmentIntroducePic {

	private Integer id;

	// transient
	private File introduce;

	// transient
	private String introduceContentType;

	@cm("Banner图片路径")
	private String introduceFileName;
	
	@cm("品牌房屋")
	private BrandApartment brandApartment;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Transient
	public File getIntroduce() {
		return introduce;
	}

	public void setIntroduce(File introduce) {
		this.introduce = introduce;
	}

	@Transient
	public String getIntroduceContentType() {
		return introduceContentType;
	}

	public void setIntroduceContentType(String introduceContentType) {
		this.introduceContentType = introduceContentType;
	}

	public String getIntroduceFileName() {
		return introduceFileName;
	}

	public void setIntroduceFileName(String introduceFileName) {
		this.introduceFileName = introduceFileName;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public BrandApartment getBrandApartment() {
		return brandApartment;
	}

	public void setBrandApartment(BrandApartment brandApartment) {
		this.brandApartment = brandApartment;
	}
	
}
